package com.ladybug.flow.modules.system.service;

import com.ladybug.flow.modules.system.domain.entitys.SysResources;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ladybug.flow.modules.system.domain.vo.MenuVO;

import java.util.List;

/**
* @author long
* @description 针对表【sys_resources(系统资源表)】的数据库操作Service
* @createDate 2022-10-17 14:13:01
*/
public interface SysResourcesService extends IService<SysResources> {

    /**
     * @return {@code MenuVO }
     * @description: 获取树形菜单
     * @Author: xianglongfei
     * @Date: 2023/01/11 08:52:11
     */
    List<MenuVO> getMenu();

    List<SysResources> getMenuList(String pid);

    /**
     * @return {@code List<SysResources> }
     * @description: 获取资源列表Tree（菜单类）
     * @Author: xianglongfei
     * @Date: 2023/01/12 11:23:12
     */
    List<SysResources> listTree();

    /**
     * @param sysResources 系统资源
     * @description: 修改资源
     * @Author: xianglongfei
     * @Date: 2023/01/12 19:02:12
     */
    void updateResource(SysResources sysResources);

    void addResource(SysResources sysResources);
}
